package ch4;
//坦克
public class Tank {
    float horsepower;
    int warheadsCarried;
    public void show( float h,int w){
        this.horsepower=h;
        this.warheadsCarried=w;
    }
    public String nature(){
        return "马力"+horsepower+"马,有"+warheadsCarried+"个核弹";
    }
    public String  start(){
        return "启动";
    }
    public String  climb(){
        return "爬坡";
    }
}
